﻿

@{
    ViewBag.Title = "登录";
}
<link href="~/Content/css/login-soft.css" rel="stylesheet" />
<style>
    .login .content {
        background-image: none;
        background-color: rgba(0, 0, 0, 0.2);
    }

        .login .content h3 {
            color: #333;
        }
</style>
@section Scripts{
    <script src="~/Content/js/jquery.backstretch.min.js"></script>
    <script src="~/Content/js/Login.js"></script>
}

<body class="login">
    <!-- BEGIN LOGO -->
    <div class="logo">
        <a href="#">
            <img src="~/Content/img/logo-big.png" alt="logo" />
        </a>
    </div>
    <!-- END LOGO -->
    <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
    <div class="menu-toggler sidebar-toggler">
    </div><!-- END SIDEBAR TOGGLER BUTTON -->
    <!-- BEGIN LOGIN -->
    <div class="content">
        <!-- BEGIN LOGIN FORM -->
        <form class="login-form" action="@Url.Action("Index","Login")" id="loginform" method="post">
            @Html.AntiForgeryToken()
            <h3 class="form-title">账号登陆</h3>
            @if (!string.IsNullOrWhiteSpace(ViewBag.Error))
            {
                <div class="alert alert-danger" id="_errorDiv">
                    <button class="close" data-dismiss="alert"></button>
                    <span>@ViewBag.Error</span>
                </div>
            }
            <div class="form-group">
                <label class="control-label visible-ie8 visible-ie9">邮箱</label>
                <div class="input-icon">
                    <i class="fa fa-user"></i>
                    <input class="form-control placeholder-no-fix" name="UserName" placeholder="邮箱" type="text" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label visible-ie8 visible-ie9">密码</label>
                <div class="input-icon">
                    <i class="fa fa-lock"></i>
                    <input class="form-control placeholder-no-fix" name="Password" placeholder="密码" type="password" />
                </div>
            </div>
            <input type="hidden" name="id" value="@ViewBag.id" />
            <div class="form-actions">
                <button type="submit" id="btn-login" class="btn blue pull-right">登陆</button>
            </div>
        </form>
        <!-- END LOGIN FORM -->
    </div>
    <!-- END LOGIN -->
    <!-- BEGIN COPYRIGHT -->
    <div class="copyright" style="color:#333">
        @DateTime.Now.Year &copy; Acadsoc 后台管理系统.<br />
        @Request.ServerVariables.Get("Local_Addr").ToString()
    </div>
    <!-- END JAVASCRIPTS -->
</body>


